﻿using System.Collections.Generic;
using TrueSync;

namespace HEFramework
{
    public class TrialData
    {
        public int ID { get; set; }

        /// <summary>
        /// 状态【准备就绪】【挑战中】【冷却中】
        /// </summary>
        /// <returns></returns>
        public eTrialState State { get; set; }

        public FP Cooldown { get; set; }
    }


    public class TrialChallengeData
    {
        public int ID { get; set; }
        public List<EntityRef<Entity>> Targets { get; set; } = new();
    }

    public class Trial : Entity, IAwake, IUpdate, IDestroy
    {
        public List<TrialData> Trials { get; set; } = new();
        public List<TrialChallengeData> TrialChallenges { get; set; } = new();
        public List<int> CompletedChallengeIDs { get; set; } = new();
    }
}